<template>
  <div class="con">
    <div class="contbox6_10">
      <p class="titlelist6_10">首页 / 商学院</p>
      <div class="content">
        <div class="conten">
          <div class="title">
            <p>{{title}}</p>
            <el-button type="primary" @click="back">返回</el-button>
          </div>
          <div>
            <div class="names" v-for="(item,index) in form" :key="index">
              <div class="school_con">{{item.questionDesc}}</div>
              <div class="school_con1"> {{item.questionAnswer}}</div>
            </div>
          </div>
          
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import https from "../../plugins/https.js";
export default {
  data() {
    return {
      list:{
        page:1,
        number:20
      },
      form:[],
      title:""
    };
  },
  created() {
    this.first()
  },
  methods: {
    first(){
      https.schoolQuestionList({questionTypeUid:this.$route.query.uid,number:10000,page:1}).then(res=>{
        if(res.data.code=="0000"){
          this.form=res.data.data
          this.title=res.data.data[0].typeName
        }else{
          layer.open({
            content:res.data.msg,
            skin: "msg",
            time: 1, //1秒后自动关闭
          });
        }
      })
    },
    back(){
      this.$router.go(-1)
    }
  }
};
</script>

<style scoped>
.content{
  background: #F9FAFC;
}
.conten{
  min-height: calc(100vh - 100px - 70px);
  width: 960px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20%;
  background: #fff;
  padding: 0 20px;
  position: relative;
}
.title{
  width: 100%;
  height: 60px;
  border-bottom: 1px solid #EBEEF5;
}
.title p{
  float: left;
  font-size: 18px;
  font-weight: bold;
  line-height: 60px;
}
.title button{
  float: right;
  width: 80px;
  height: 32px;
  margin-top: 14px;
  padding-top: 9px;
  background: #f5f7fa;
  color: #409eff;
}
.names{
  width: 100%;
  min-height: 90px;
  border-bottom: 1px solid #EBEEF5;
  padding-bottom: 20px;
}
.school_con{
  margin-top: 20px;
  width: 100%;
  font-size: 16px;
}
.school_con1{
  margin-top: 20px;
  width: 100%;
  font-size: 16px;
  color: #909399
}

</style>
